//accepted 
#include <cstdio>
int a, n, f, sum=0;
int main(){
	//sfreopen("in.txt","r",stdin);//freopen("out.txt","w",stdout);
	scanf("%d%d", &a, &n);
	for(int i=0;i<n;++i){
		scanf("%d", &f);
		if((f*a)>=40000000)sum++;
	}
	printf("%d", sum);
	return 0;
}
